package com.atguigu.campusintelligentassistantsystem.repository;

import com.atguigu.campusintelligentassistantsystem.entity.CampusActivity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface CampusActivityRepository extends JpaRepository<CampusActivity, Long> {
    List<CampusActivity> findByStatusOrderByActivityTime(String status);
    List<CampusActivity> findByActivityTimeAfterOrderByActivityTimeAsc(LocalDateTime time);
}